package com.example.sys.entity.po;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 角色表(SysRole)实体类
 *
 * @author makejava
 * @since 2022-03-10 11:16:08
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Entity
@Table(name = "sys_role")
public class SysRole implements Serializable {
    private static final long serialVersionUID = -22710944088571485L;
    /**
     * 主键
     */
    @Id
    private Long roleId;
    /**
     * 角色名称
     */
    private String roleName;
    /**
     * 角色描述,备注
     */
    private String roleDesc;
    /**
     * 状态,0失效 1在用
     */
    private Integer status;
    /**
     * 排序
     */
    private Long showOrder;
    /**
     * 创建时间
     */
    private LocalDateTime createTime;
    /**
     * 修改时间
     */
    private LocalDateTime updateTime;


}